# letter = 'a'
# # 使用ord()函数将字符转换为ASCII码
# ascii_code = ord(letter)
# # 使用chr()函数将ASCII码转换为字符
# letter_res = chr(ascii_code)
# print (ascii_code, letter_res)
# b="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
# a=input("请输入偏移的值：")
# print(b)
# for i in range(0,26):
#     print(b[(i+int(a))%26],end=" ")
# import random

# def roll_dice(a,b):
#     while True:
#         k=random.randint(1,a)
#         print(k)
#         if k==b:
#             break

# roll_dice(20,3)
# a= [1,2,3,4,5]
# def sum_all(a):
#     for i in range(len(a)-1):
#         a[i+1]=a[i]+a[i+1]
#     return a
# print(sum_all(a))
# a=[1,2,3,4,5,4,3,2,1]
# b=[1,3,5,7,9,2,4,6,8,10]
# def list_intersection(a,b):
#     c=[]
#     for i in range(len(a)):
#         for j in range(len(b)):
#             if a[i]==b[j]:
#                 c.append(a[i])
#                 break
#     return c
# print(list_intersection(a,b))
